import { Blog } from '../model/Blog.js';
import { sequelize } from './sequelize.js';

//创建与数据库的连接
export const sync = async () => {
    
    await sequelize.sync();  //调用sequelize实例的dataBase方法
    console.log("数据库初始化成功");

    await Blog.sync();
}
